//
//  energyConditionInfo.m
//  cocoapodText
//
//  Created by apple on 16/9/9.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "energyConditionInfo.h"
#import <Foundation/Foundation.h>

@implementation energyConditionInfo

-(instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        //使用KVC
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}

/**
 *  工厂方法
 *
 *  @param dict 字典
 *
 *  @return 模型
 */
+(instancetype)energyConditionInfoWithDict:(NSDictionary *)dict
{
    return [[self alloc]initWithDict:dict];
}

/**
 *  工厂方法
 *
 *  @param dict 字典
 *
 *  @return 模型
 */
+(instancetype)energyConditionInfoWithCondition:(NSString *)condition isOdd:(NSString *)isOdd isSelect:(NSString *)isSelect flagNo:(NSString *)flagNo encode:(NSString *)encode{
    NSDictionary *dict = @{@"Condition":condition,@"IsOdd":isOdd,@"IsSelect":isSelect,@"FlagNo":flagNo,@"Encode":encode};
    return [[self alloc]initWithDict:dict];
}

@end
